home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2008 January / Cybermycha 1_2008.iso / Data.cab / _B3F06D7DB9E64961B8D8D51041662999 < prev    next >
Encoding:
Text File  |  2004-03-12  |  1.3 KB  |  54 lines

  1. light("spot_spotmap")
  2. {
  3.     pass()
  4.     {
  5.         vertexshader("SpotTerrainVS.vsh")
  6.  
  7.         tmu()
  8.         {
  9.             texgen("spotlight")
  10.             texture()
  11.             {
  12.                 spotmap()
  13.                 addressfunc("clamp", "clamp", "clamp")
  14.                 filtering("linear_no_mip")  //FIXIT
  15.             }
  16.             colorop("mul", "texture", "tfactor", "current")
  17.         }
  18.  
  19.         tmu()
  20.         {
  21.             texgen("spotlight_z_att")
  22.             texture()
  23.             {
  24.                 image("spot_z.png")
  25.                 addressfunc("clamp", "clamp", "clamp")
  26.                 filtering("linear_no_mip")
  27.             }
  28.             colorop("mul", "texture", "current", "current")
  29.         }
  30.  
  31.         !include("__TerrainColormapVS.mtt")
  32.  
  33.         tmu()
  34.         {
  35.             TexGen("planar_from_model")
  36.             TexMod("scale", "const", %detailsize, 0, 0, "const", %detailsize, 0, 0)
  37.             texture()
  38.             {
  39.                 Image(%detail1texture)
  40.             }
  41.             colorop("mul", "texture", "current", "current")
  42.             alphaop("arg2", "texture", "tfactor", "current")
  43.         }
  44.         tfactor(1,1,1,0)
  45.         colorgen("tfactor", "user", 0,0,0, "none", 0,0,0)
  46.  
  47.         blendfunc("one", "one")
  48.         depthfunc("lequal", 0)
  49.  
  50.         blackfog()
  51.     }
  52. }
  53.  
  54.